package com.seed.commons.util;

import java.io.IOException;
import java.util.Properties;

/**
 * 说明：加载属性文件
 * <br/>编写者：杨浩泉
 * <br/>日期：2010-3-1
 */
public class LoadFileUtil {
	
	private LoadFileUtil() {}
	
	public static Properties loadPro(String filename) {
		
		Properties pros = new Properties() ;
		
		try {
			pros.load(LoadFileUtil.class.getClassLoader().getResourceAsStream(filename)) ;
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		return pros ;
	}
	
}
